<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_09) on Sat Dec 29 12:31:15 CET 2012 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>PDFTarget (gephi 0.8.2 API)</title>
<meta name="date" content="2012-12-29">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="PDFTarget (gephi 0.8.2 API)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/PDFTarget.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/gephi/preview/api/ManagedRenderer.html" title="class in org.gephi.preview.api"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/gephi/preview/api/PreviewController.html" title="interface in org.gephi.preview.api"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/gephi/preview/api/PDFTarget.html" target="_top">Frames</a></li>
<li><a href="PDFTarget.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.gephi.preview.api</div>
<h2 title="Interface PDFTarget" class="title">Interface PDFTarget</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Superinterfaces:</dt>
<dd><a href="../../../../org/gephi/preview/api/RenderTarget.html" title="interface in org.gephi.preview.api">RenderTarget</a></dd>
</dl>
<hr>
<br>
<pre>public interface <span class="strong">PDFTarget</span>
extends <a href="../../../../org/gephi/preview/api/RenderTarget.html" title="interface in org.gephi.preview.api">RenderTarget</a></pre>
<div class="block">Rendering target to PDF format.
 <p>
 This target is used by renderers objects to render a graph to PDF and uses
 the <a href="http://itextpdf.com">iText</a> Java library.
 <p>
 The target give access to the <code>PDFContentBype</code> object from itext to
 draw items.
 <p>
 When this target is instanciated it uses property values defined in the
 <a href="../../../../org/gephi/preview/api/PreviewProperties.html" title="class in org.gephi.preview.api"><code>PreviewProperties</code></a>. Namely is uses <code>MARGIN_LEFT</code>, 
 <code>MARGIN_TOP</code>, <code>MARGIN_BOTTOM</code>, <code>MARGIN_RIGHT</code>, 
 <code>LANDCAPE</code> and <code>PAGESIZE</code>.</div>
<dl><dt><span class="strong">Author:</span></dt>
  <dd>Yudi Xue, Mathieu Bastian</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/preview/api/PDFTarget.html#LANDSCAPE">LANDSCAPE</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/preview/api/PDFTarget.html#MARGIN_BOTTOM">MARGIN_BOTTOM</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/preview/api/PDFTarget.html#MARGIN_LEFT">MARGIN_LEFT</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/preview/api/PDFTarget.html#MARGIN_RIGHT">MARGIN_RIGHT</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/preview/api/PDFTarget.html#MARGIN_TOP">MARGIN_TOP</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/preview/api/PDFTarget.html#PAGESIZE">PAGESIZE</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/preview/api/PDFTarget.html#PDF_CONTENT_BYTE">PDF_CONTENT_BYTE</a></strong></code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.gephi.preview.api.RenderTarget">
<!--   -->
</a>
<h3>Fields inherited from interface&nbsp;org.gephi.preview.api.<a href="../../../../org/gephi/preview/api/RenderTarget.html" title="interface in org.gephi.preview.api">RenderTarget</a></h3>
<code><a href="../../../../org/gephi/preview/api/RenderTarget.html#PDF_TARGET">PDF_TARGET</a>, <a href="../../../../org/gephi/preview/api/RenderTarget.html#PROCESSING_TARGET">PROCESSING_TARGET</a>, <a href="../../../../org/gephi/preview/api/RenderTarget.html#SVG_TARGET">SVG_TARGET</a></code></li>
</ul>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>com.itextpdf.text.pdf.BaseFont</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/preview/api/PDFTarget.html#getBaseFont(java.awt.Font)">getBaseFont</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</a>&nbsp;font)</code>
<div class="block">Get a the equivalent in iText of the Java font.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>com.itextpdf.text.pdf.PdfContentByte</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/preview/api/PDFTarget.html#getContentByte()">getContentByte</a></strong>()</code>
<div class="block">Returns the <code>PDFContentBype</code> instance of the PDFTarget.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/preview/api/PDFTarget.html#getMarginBottom()">getMarginBottom</a></strong>()</code>
<div class="block">Returns the margin at the bottom of the page.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/preview/api/PDFTarget.html#getMarginLeft()">getMarginLeft</a></strong>()</code>
<div class="block">Returns the margin at the left of the page.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/preview/api/PDFTarget.html#getMarginRight()">getMarginRight</a></strong>()</code>
<div class="block">Returns the margin at the right of the page.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/preview/api/PDFTarget.html#getMarginTop()">getMarginTop</a></strong>()</code>
<div class="block">Returns the margin at the top of the page.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>com.itextpdf.text.Rectangle</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/preview/api/PDFTarget.html#getPageSize()">getPageSize</a></strong>()</code>
<div class="block">Returns the page's size.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/preview/api/PDFTarget.html#isLandscape()">isLandscape</a></strong>()</code>
<div class="block">Returns whether the orientation is in landscape or portrait.</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="PDF_CONTENT_BYTE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PDF_CONTENT_BYTE</h4>
<pre>static final&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> PDF_CONTENT_BYTE</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.gephi.preview.api.PDFTarget.PDF_CONTENT_BYTE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="MARGIN_LEFT">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MARGIN_LEFT</h4>
<pre>static final&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> MARGIN_LEFT</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.gephi.preview.api.PDFTarget.MARGIN_LEFT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="MARGIN_TOP">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MARGIN_TOP</h4>
<pre>static final&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> MARGIN_TOP</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.gephi.preview.api.PDFTarget.MARGIN_TOP">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="MARGIN_BOTTOM">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MARGIN_BOTTOM</h4>
<pre>static final&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> MARGIN_BOTTOM</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.gephi.preview.api.PDFTarget.MARGIN_BOTTOM">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="MARGIN_RIGHT">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MARGIN_RIGHT</h4>
<pre>static final&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> MARGIN_RIGHT</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.gephi.preview.api.PDFTarget.MARGIN_RIGHT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="LANDSCAPE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LANDSCAPE</h4>
<pre>static final&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> LANDSCAPE</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.gephi.preview.api.PDFTarget.LANDSCAPE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="PAGESIZE">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>PAGESIZE</h4>
<pre>static final&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> PAGESIZE</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.gephi.preview.api.PDFTarget.PAGESIZE">Constant Field Values</a></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="getContentByte()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getContentByte</h4>
<pre>com.itextpdf.text.pdf.PdfContentByte&nbsp;getContentByte()</pre>
<div class="block">Returns the <code>PDFContentBype</code> instance of the PDFTarget. PDFContentByte
 offers a set of drawing functions which can be used by Renderer objects.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a PDFContentBype object</dd></dl>
</li>
</ul>
<a name="getBaseFont(java.awt.Font)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBaseFont</h4>
<pre>com.itextpdf.text.pdf.BaseFont&nbsp;getBaseFont(<a href="http://docs.oracle.com/javase/6/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</a>&nbsp;font)</pre>
<div class="block">Get a the equivalent in iText of the Java font. Base fonts are either
 Type 1 fonts (PDF default's font) or valid system fonts. The first time
 a base font which is not a Type 1 is requested the system will
 register the system fonts in order to find the right font. This might
 take some time up to a minute.
 <p>
 If <code>font</code> can't be found in iText's default fonts or registered
 fonts it returns the default Helvetica font.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>font</code> - the reference Java font</dd>
<dt><span class="strong">Returns:</span></dt><dd>the iText BaseFont, or Helvetica is not found</dd></dl>
</li>
</ul>
<a name="getMarginBottom()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMarginBottom</h4>
<pre>float&nbsp;getMarginBottom()</pre>
<div class="block">Returns the margin at the bottom of the page.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the bottom margin, in pixels</dd></dl>
</li>
</ul>
<a name="getMarginLeft()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMarginLeft</h4>
<pre>float&nbsp;getMarginLeft()</pre>
<div class="block">Returns the margin at the left of the page.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the left margin, in pixels</dd></dl>
</li>
</ul>
<a name="getMarginRight()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMarginRight</h4>
<pre>float&nbsp;getMarginRight()</pre>
<div class="block">Returns the margin at the right of the page.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the right margin, in pixels</dd></dl>
</li>
</ul>
<a name="getMarginTop()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMarginTop</h4>
<pre>float&nbsp;getMarginTop()</pre>
<div class="block">Returns the margin at the top of the page.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the top margin, in pixels</dd></dl>
</li>
</ul>
<a name="isLandscape()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isLandscape</h4>
<pre>boolean&nbsp;isLandscape()</pre>
<div class="block">Returns whether the orientation is in landscape or portrait.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> if the orientation is landscape, <code>false</code>
 if portrait.</dd></dl>
</li>
</ul>
<a name="getPageSize()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getPageSize</h4>
<pre>com.itextpdf.text.Rectangle&nbsp;getPageSize()</pre>
<div class="block">Returns the page's size.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the page size</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/PDFTarget.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/gephi/preview/api/ManagedRenderer.html" title="class in org.gephi.preview.api"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/gephi/preview/api/PreviewController.html" title="interface in org.gephi.preview.api"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/gephi/preview/api/PDFTarget.html" target="_top">Frames</a></li>
<li><a href="PDFTarget.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2007-2012 <a href="http://consortium.gephi.org">Gephi Consortium</a>. All Rights Reserved.</small></p>
</body>
</html>
